From 6babcbbeeb7b6418e57951ec2d33a9358f5d640d Mon Sep 17 00:00:00 2001 From: Aryeh Gregor Date: Mon, 10 Aug 2009 01:42:45 +0000 Subject: [PATCH] Don't use summary attribute in TOCs The summary attribute is obsolete in HTML 5. It wasn't serving any useful purpose anyway, since it duplicated the h2 inside the table. (Of course, we should really stop using for TOCs altogether!) --- RELEASE-NOTES | 2 ++ includes/Linker.php | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/RELEASE-NOTES b/RELEASE-NOTES index 2cacdc2d53..c311be2419 100644 --- a/RELEASE-NOTES +++ b/RELEASE-NOTES @@ -196,6 +196,8 @@ this. Was used when mwEmbed was going to be an extension. cutting-edge browsers. E.g., some inputs will be autofocused, users will not be allowed to submit forms with certain types of invalid values (like numbers outside the permitted ranges), etc. +** The summary attribute has been removed from tables of contents. summary is + obsolete in HTML 5 and wasn't useful here anyway. * New hook SpecialRandomBeforeSQL allows extensions to modify or replace the SQL query used in Special:Random and subclasses, deprecating the $wgExtraRandompageSQL config variable diff --git a/includes/Linker.php b/includes/Linker.php index bcd23a7a20..bd306ce278 100644 --- a/includes/Linker.php +++ b/includes/Linker.php @@ -1260,7 +1260,7 @@ class Linker { global $wgJsMimeType; $title = wfMsgHtml('toc') ; return - '
' + '
' . '

' . $title . "

\n" . $toc # no trailing newline, script should not be wrapped in a -- 2.20.1